import {configureStore} from '@reduxjs/toolkit'
import infoReducer from './info'
// redux存储库
const store = configureStore({
    reducer: {
        // 挂载
        info: infoReducer
    }
});
export default store;
// 状态类型
export type RootState = ReturnType<typeof store.getState>
// 动作类型
export type AppDispatch = typeof store.dispatch;